how to write the component form of a vector